//package com.jiema.human.utils;
//
//import com.aliyuncs.DefaultAcsClient;
//import com.aliyuncs.exceptions.ClientException;
//import com.aliyuncs.profile.DefaultProfile;
//import com.aliyuncs.vod.model.v20170321.GetPlayInfoRequest;
//import com.aliyuncs.vod.model.v20170321.GetPlayInfoResponse;
//
//public class InitVodClient {
//
//
//    public static DefaultAcsClient init(String accessKeyId, String accessKeySecret) throws ClientException {
//        /**
//         * 点播服务接入区域
//         */
//        String regionId = "cn-shanghai";
//        DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
//        DefaultAcsClient client = new DefaultAcsClient(profile);
//        return client;
//    }
//
//    /*获取播放地址函数*/
//    public static GetPlayInfoResponse getPlayInfo(DefaultAcsClient client, String vedioId) throws Exception {
//        GetPlayInfoRequest request = new GetPlayInfoRequest();
//        request.setVideoId(vedioId);
//        return client.getAcsResponse(request);
//    }
//}
